<?php

header('Content-Type:application/json');//这个类型声明非常关键
header('Access-Control-Allow-Origin: *');//避免跨域

$array = [
    'status'  => 0,
    'message' => [
        [
            "cou"        => 1,
            "id"         => 87,
            "title"      => "华为（HUAWEI）荣耀6Plus 16G双4G版",
            "sell_price" => 2195,
            "thumb_path" => "http://www.cnlogo8.com/d/file/2018-11-20/d1a0b3dcdf885e6f1a2f7b01a6577c1e.png"
        ],
        [
            "cou"        => 1,
            "id"         => 88,
            "title"      => "苹果Apple iPhone 6 Plus 16G 4G手机（联通三网版）",
            "sell_price" => 5780,
            "thumb_path" => "http://www.cnlogo8.com/d/file/2018-11-13/9d783ac5e674d3420410387d2d7e7056.png"
        ]
    ]
];
echo json_encode($array);